<template>
  <el-table :data="tableData">
    <el-table-column prop="name" label="姓名"> </el-table-column>
    <el-table-column prop="nickname" label="中心"> </el-table-column>
    <el-table-column prop="team" label="团队"> </el-table-column>
    <el-table-column prop="kun" label="已售卖"> </el-table-column>
    <el-table-column prop="project" label="累计金额"> </el-table-column>
  </el-table>
</template>
<script>
export default {
  props: {
    ikun: {
      type: Array,
      default() {
        return [];
      },
    },
  },
  watch: {
    ikun: {
      handler(val) {
        this.tableData = val;
      },
      deep: true,
      immediate: true,
    },
  },
  data() {
    return {
      tableData: [],
    };
  },
};
</script>
<style lang="less" scoped>
.el-table {
  width: 100%;
  height: 86%;
  // margin-top: 20px;
  border-radius: 10px;
  overflow: auto;
}
</style>
